<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WA.Core.DomainModel.Partner>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	AddPartner
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>AddPartner</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="PartnerID">PartnerID:</label>
                <%= Html.TextBox("PartnerID") %>
                <%= Html.ValidationMessage("PartnerID", "*") %>
            </p>
            <p>
                <label for="Name">Name:</label>
                <%= Html.TextBox("Name") %>
                <%= Html.ValidationMessage("Name", "*") %>
            </p>
            <p>
                <label for="FirstName">FirstName:</label>
                <%= Html.TextBox("FirstName") %>
                <%= Html.ValidationMessage("FirstName", "*") %>
            </p>
            <p>
                <label for="LastName">LastName:</label>
                <%= Html.TextBox("LastName") %>
                <%= Html.ValidationMessage("LastName", "*") %>
            </p>
            <p>
                <label for="IsPayingTax">IsPayingTax:</label>
                <%= Html.TextBox("IsPayingTax") %>
                <%= Html.ValidationMessage("IsPayingTax", "*") %>
            </p>
            <p>
                <label for="PartnerType">PartnerType:</label>
                <%= Html.TextBox("PartnerType") %>
                <%= Html.ValidationMessage("PartnerType", "*") %>
            </p>
            <p>
                <label for="Address">Address:</label>
                <%= Html.TextBox("Address") %>
                <%= Html.ValidationMessage("Address", "*") %>
            </p>
            <p>
                <label for="Phone">Phone:</label>
                <%= Html.TextBox("Phone") %>
                <%= Html.ValidationMessage("Phone", "*") %>
            </p>
            <p>
                <label for="TaxIdentificationNumber">TaxIdentificationNumber:</label>
                <%= Html.TextBox("TaxIdentificationNumber") %>
                <%= Html.ValidationMessage("TaxIdentificationNumber", "*") %>
            </p>
            <p>
                <label for="IdentificationNumber">IdentificationNumber:</label>
                <%= Html.TextBox("IdentificationNumber") %>
                <%= Html.ValidationMessage("IdentificationNumber", "*") %>
            </p>
            <p>
                <label for="City">City:</label>
                <%= Html.TextBox("City") %>
                <%= Html.ValidationMessage("City", "*") %>
            </p>
            <p>
                <label for="ID">ID:</label>
                <%= Html.TextBox("ID") %>
                <%= Html.ValidationMessage("ID", "*") %>
            </p>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

